package com.xszn.middleware.service;

import com.fasterxml.jackson.core.JsonProcessingException;

import javax.websocket.Session;

public interface HardwareInterface<T, K> {


    T queryPeople(Session session, K condition) throws JsonProcessingException;
    /**
     * 下发人脸
     * @param session
     * @return
     */
    T storageFace(Session session);

    /**
     * 删除某张人脸
     * @param session
     * @return
     */
    T deleteFace(Session session);

    /**
     * 远程开门
     * @param session
     * @return
     */
    T openDoor(Session session);
}
